<%@page contentType="text/html;charset=UTF-8"%>
<%@include file="/common/commonTag.jsp"%>
<html>
	<head>
		<title>查询模板</title>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<script type="text/javascript" src="${path}/js/jquery.js"></script>
		<script type="text/javascript" src="${path}/js/CommonsUtil.js"></script>
		<script type="text/javascript" src="${path}/js/exportHTML.js"></script>
		<link rel="stylesheet" type="text/css" href="${path}/style/styles.css">
		<link rel="stylesheet" type="text/css" href="${path}/style/main.css">
	</head>
	<body>
		<div class="centext">
			<div class="context_head">
				后台管理 &gt;&gt; 查询模板
			</div>
			<div class="context_main_1">
				<div class="mop">
					共 <b>4</b> 数据  &nbsp;
							
					<a href="">上一页 </a>
					【
						<a href="">1</a>&nbsp;
						<a href="">2</a>&nbsp;
						<a href="">3</a>&nbsp;
						<a href="">4</a>&nbsp;
						<a href="">5</a>
					】
					<a href="">下一页 </a>
					
					&nbsp;页次：<font color=red><b>1</b></font>/<b>2</b> 页 
					
					 转到第 
						<select name="">
							<option>1</option>
							<option>2</option>
							<option>3</option>
							<option>4</option>
						</select> 
					页&nbsp;
				</div>
				<form action="${path}/website/template!deleteTemplate.action" method="post">
				<table class="tables" width="100%">
					<tr>
						<th class="th1">全选</th>							
						<th class="th1">模板ID</th>							
						<th class="th1">模板名称</th>							
						<th class="th1">模板路径</th>							
						<th class="th1">输出文件名称</th>							
						<th class="th1">模板描述</th>							
						<th class="th1">添加时间</th>							
						<th class="th1">操作</th>							
					</tr>
					
					<c:choose>
						<c:when test="${empty template.template}">
							<td class="td3" colspan="8" style="height:50px;" align=center><a href="${path}/website/tempItem!queryAllTempItem.action?basefrom.type=addTemplate">添加模板</a></td>
						</c:when>
						<c:otherwise>
							<c:forEach var="template" items="${template.template}">
								<tr>
									<td class="td3" align=center>
										<input type="checkbox" name="ids" value="${template.templateId}"/>
									</td>							
									<td class="td3" align=center>${template.templateId}</td>							
									<td class="td3" align=center><a href="${path}/website/naviItem!queryByIdSni.action?sni.id=${template.templateId}&basefrom.type=loadNavi">${template.templateName}</a></td>
									<td class="td3" align=center>${template.templatePath}</td>
									<td class="td3" align=center>${template.exportName}</td>
									<td class="td3" align=center>${template.templateDesc}</td>
									<td class="td3" align=center><fmt:formatDate value="${template.addTime}" pattern="yyyy-MM-dd"/></td>
									<td class="td3" align=center>
										<a href="${path}/website/tempItem!queryAllTempItem.action?baseform.type=addTemplate">添加</a>
										<a href="javascript:openWin('${path}/website/template!loadByIdTemplate.action?template.templateId=${template.templateId}','',500,300);">修改</a>
									</td>
								</tr>
							</c:forEach>
						</c:otherwise>
					</c:choose>
					
					<tr>
						<td colspan="11"  class="td3_bottom">
							<input type="hidden" name="tempItemId" value="${template.tempItemId}"/>
							<input type="submit" value="删除选择"/>
						</td>
					</tr>
				</table>		
				</form>
			</div>
		</div>
	</body>
</html>
